home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / lmmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.3 KB  |  118 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmmsg.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains structures, function prototypes, and definitions
  12.     for the NetMessage API.
  13.  
  14. [Environment:]
  15.  
  16.     User Mode - Win32
  17.  
  18. [Notes:]
  19.  
  20.     You must include NETCONS.H before this file, since this file depends
  21.     on values defined in NETCONS.H.
  22.  
  23. --*/
  24.  
  25. /*
  26.  *      C/C++ Run Time Library - Version 9.0
  27.  *
  28.  *      Copyright (c) 1997, 1998 by Borland International
  29.  *      All Rights Reserved.
  30.  *
  31.  */
  32.  
  33. #ifndef _LMMSG_
  34. #define _LMMSG_
  35. #pragma option push -b
  36.  
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41.  
  42. //
  43. // Function Prototypes
  44. //
  45.  
  46. NET_API_STATUS NET_API_FUNCTION
  47. NetMessageNameAdd (
  48.     IN  LPCWSTR  servername,
  49.     IN  LPCWSTR  msgname
  50.     );
  51.  
  52. NET_API_STATUS NET_API_FUNCTION
  53. NetMessageNameEnum (
  54.     IN  LPCWSTR     servername,
  55.     IN  DWORD       level,
  56.     OUT LPBYTE      *bufptr,
  57.     IN  DWORD       prefmaxlen,
  58.     OUT LPDWORD     entriesread,
  59.     OUT LPDWORD     totalentries,
  60.     IN OUT LPDWORD  resume_handle
  61.     );
  62.  
  63. NET_API_STATUS NET_API_FUNCTION
  64. NetMessageNameGetInfo (
  65.     IN  LPCWSTR servername,
  66.     IN  LPCWSTR msgname,
  67.     IN  DWORD   level,
  68.     OUT LPBYTE  *bufptr
  69.     );
  70.  
  71. NET_API_STATUS NET_API_FUNCTION
  72. NetMessageNameDel (
  73.     IN  LPCWSTR   servername,
  74.     IN  LPCWSTR   msgname
  75.     );
  76.  
  77. NET_API_STATUS NET_API_FUNCTION
  78. NetMessageBufferSend (
  79.     IN  LPCWSTR  servername,
  80.     IN  LPCWSTR  msgname,
  81.     IN  LPCWSTR  fromname,
  82.     IN  LPBYTE   buf,
  83.     IN  DWORD    buflen
  84.     );
  85.  
  86. //
  87. //  Data Structures
  88. //
  89.  
  90. typedef struct _MSG_INFO_0 {
  91.     LPWSTR  msgi0_name;
  92. }MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0;
  93.  
  94. typedef struct _MSG_INFO_1 {
  95.     LPWSTR  msgi1_name;
  96.     DWORD   msgi1_forward_flag;
  97.     LPWSTR  msgi1_forward;
  98. }MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1;
  99.  
  100. //
  101. // Special Values and Constants
  102. //
  103.  
  104. //
  105. // Values for msgi1_forward_flag.
  106. //
  107.  
  108. #define MSGNAME_NOT_FORWARDED   0       // Name not forwarded
  109. #define MSGNAME_FORWARDED_TO    0x04    // Name forward to remote station
  110. #define MSGNAME_FORWARDED_FROM  0x10    // Name forwarded from remote station
  111.  
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115.  
  116. #pragma option pop
  117. #endif //_LMMSG_
  118.